package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbProgress;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbProgress is a Querydsl query type for ETbProgress
 */
@Label("单箱节点表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbProgress extends RelationalPathBase<ETbProgress> {

    private static final long serialVersionUID = 863360036;

    public static final QTbProgress tbProgress = new QTbProgress("tb_progress");

    public class PrimaryKeys {

        public final PrimaryKey<ETbProgress> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbContainerInfo> tbProgressTbContainerInfo1Fk = createForeignKey(tbContainerInfoId, "id");

    }

    public final StringPath containerNo = createString("containerNo");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath progressContent = createString("progressContent");

    public final DateTimePath<org.joda.time.DateTime> progressTime = createDateTime("progressTime", org.joda.time.DateTime.class);

    public final StringPath tbContainerInfoId = createString("tbContainerInfoId");

    public final StringPath user = createString("user");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbProgress(String variable) {
        super(ETbProgress.class, forVariable(variable), "null", "tb_progress");
        addMetadata();
    }

    public QTbProgress(String variable, String schema, String table) {
        super(ETbProgress.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbProgress(Path<? extends ETbProgress> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_progress");
        addMetadata();
    }

    public QTbProgress(PathMetadata<?> metadata) {
        super(ETbProgress.class, metadata, "null", "tb_progress");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(containerNo, ColumnMetadata.named("containerNo").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(7).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(progressContent, ColumnMetadata.named("progressContent").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(progressTime, ColumnMetadata.named("progressTime").withIndex(3).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(tbContainerInfoId, ColumnMetadata.named("tb_container_info_id").withIndex(6).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(user, ColumnMetadata.named("user").withIndex(4).ofType(Types.VARCHAR).withSize(45));
    }

}

